<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<div class="todolist_container">
<link type="text/css" rel="stylesheet" href="${ctxPath }/css/oa/index.css?2019083001" id="cssfile"/>

	<section>
<c:if test="${equal_finish == 2 }">
		<!-- <h2 onclick="save()">正在进行 <span id="doingcount">0</span></h2> -->
		<ol class="todolist demo-box doing">
	<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
			<li draggable="true"><input type="checkbox"	><p id="p-0" onclick="edit(0)">${model.title }</p>
				<a href="javascript:remove(0)">-</a></li>
	</c:forEach>
		</ol>
</c:if>
<c:if test="${equal_finish == 0 }">
		<!-- <h2 onclick="save()">未开始 <span id="nostartcount">0</span></h2> -->
		<ul class="todolist demo-box nostart">
	<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
			<li draggable="true"><input type="checkbox"	><p id="p-0" onclick="edit(0)">${model.title }</p>
				<a href="javascript:remove(0)">-</a></li>
	</c:forEach>
		</ul>
</c:if>
<c:if test="${equal_finish == 1 }">
		<!-- <h2>已经完成 <span id="donecount">0</span></h2> -->
		<ul class="todolist done">
	<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
			<li draggable="true"><input type="checkbox"	onchange="update(0,&quot;done&quot;,false)" checked="checked">
				<p id="p-0" onclick="edit(0)">${model.title }</p>
				<a href="javascript:remove(0)">-</a></li>
	</c:forEach>
		</ul>
</c:if>
	</section>
</div>
<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>
</shield:permssion>
<script type="text/javascript">
$("#count${equal_finish }").text($(".paginationBox").find(".totalCount").text());
</script>
